package net.jueb.frameworkDemo.orm.mongodb.springDataMongodb;

import java.util.Collection;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.mongodb.WriteResult;

@Repository
public interface MyRepository<T>{

	public List<T> getAllObjects();

	public void saveObject(T object);
	
	public T findObject(String id);
	
	public void saveObjects(Collection<T> objs);

	public T getObject(String id);

	public WriteResult updateObject(String id, String name);

	public void deleteObject(String id);

	public void createCollection();

	public void dropCollection();
}